import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', () => {
let counter=ref(

    {   username:localStorage.getItem('username'),
       name:'TopMaker',
       img:'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',}

)

  return { counter}
},
  {
    persist: true,
  },
)

